package com.yuan.order.service.impl;

import com.yuan.order.dataobject.SellerInfo;
import com.yuan.order.repository.SellerInfoRepository;
import com.yuan.order.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 卖家
 *
 * @Author yuan
 * @Date 2021/3/12 15:59
 */
@Service
public class SellerServiceImpl implements SellerService {
    @Autowired
    private SellerInfoRepository repository;

    /**
     * 通过openid查询卖家端信息6
     * 用于登录
     *
     * @param openid
     * @return
     */
    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return repository.findByOpenid(openid);
    }
}
